<!--#include file="./doctype.html"-->
<title><%=editTitle%>产品-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<ol class="breadcrumb">
		<li><a href="<%=fileName%>?q=index">列表首页</a></li>
		<li class="active"><a href="javascript:;" class="reload"><%=editTitle%></a></li>
	</ol>
	<div class="alert alert-success">
		<span class="close" data-dismiss="alert">&times;</span>
		简介内容分页标签为：[page]，注意小写
	</div>
	<form method="post" action="<%=fileName%>?q=save" class="mb10" role="form">
        <input type="hidden" name="id" value="<%=iid%>">
        <div class="form-group fix">
            <input id="title" name="title" class="form-control inline w30 check_value" placeholder="产品名称" value="<%=app.hec(data(0))%>" />
            <label class="inline control-label" for="title">产品名称</label>
        </div>
        <div class="form-group fix">
            <input id="productType" name="productType" class="form-control inline w30" placeholder="产品型号" value="<%=app.hec(data(1))%>" />
            <label class="inline control-label" for="productType">产品型号</label>
        </div>
        <div class="form-group fix">
            <input id="manufacturer" name="manufacturer" class="form-control inline w30" placeholder="生产厂家" value="<%=app.hec(data(2))%>" />
            <label class="inline control-label" for="manufacturer">生产厂家</label>
        </div>
        <div class="form-group fix">
            <input id="price" name="price" class="form-control inline w30" placeholder="产品价格" value="<%=data(3)%>" />
            <label class="inline control-label" for="price">产品价格(价格为0时则不显示价格)单位：元</label>
        </div>
        <div class="form-group fix">
            <input id="dateTime" name="dateTime" class="form-control inline w30 data_time" placeholder="生产日期" value="<%=data(4)%>" />
            <label class="inline control-label" for="dateTime">生产日期</label>
        </div>
        <div class="form-group fix">
            <input id="proUrl1" name="proUrl1" class="form-control inline w30" placeholder="自定义链接1" value="<%=app.hec(data(5))%>" />
            <label class="inline control-label" for="proUrl1">自定义链接1</label>
        </div>
        <div class="form-group fix">
            <input id="proUrl2" name="proUrl2" class="form-control inline w30" placeholder="自定义链接2" value="<%=app.hec(data(6))%>" />
            <label class="inline control-label" for="proUrl2">自定义链接2</label>
        </div>
        <div class="form-group fix">
            <input id="hits" name="hits" class="form-control inline w30" placeholder="点击数" value="<%=data(7)%>" />
            <label class="inline control-label" for="hits">点击数</label>
        </div>
        <div class="form-group fix">
            <div class="inline w30 view_id" data-name="infoViewID" data-id="<%=data(9)%>"></div>
            <label class="inline control-label" for="infoViewID">使用模板(不选使用默认)</label>
        </div>
        <div class="form-group fix">
            <div class="inline w30 class_id" data-name="classID" data-id="<%=data(10)%>"></div>
            <label class="inline control-label" for="classID">所属栏目</label>
        </div>
        <div class="form-group fix">
             <label class="btn btn-sm btn-default control-label">
                 <input name="isStop" value="<%=data(11)%>" type="checkbox"
                 <% if app.cj_bool(data(11)) then %>checked="checked"<% End if %>
                 > 是否停产？
             </label>
             <input name="picUrl" class="dn picUrl" value="<%=admin.deUploadDir(data(8))%>" />
             <label class="inline">缩略图：</label>
             <img class="img-thumbnail show_pic thumb_img" src="<%=app.getInfoPic(data(8))%>">
             <span class="btn btn-default btn-sm selectPicUrl">上传图片</span>
        </div>
        <div class="form-group fix">
            <label class="inline control-label" for="content">内容</label>
            <textarea id="content" name="content" class="form-control check_value" rows="10" placeholder="内容"><%=admin.deUploadDir(data(12))%></textarea>
        </div>
        <div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadeditor.html"-->
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
    $('.class_id').getKind({
        url: './ajax.asp?q=getGenreClass',
        data: 'id=1',
        type: 'select'
    });
    $('.view_id').getView();
	$('.check_value').checkEmpty();
	$('.data_time').datePicker().on('changeDate', function(e){
	    e.viewMode == 'days' && $(this).datePicker('hide');
	});
$(this)
	.on('submit', 'form', function(){
		return $.submitForm('.check_value');
	})
})
</script>
</body>
</html>